import 'package:json_annotation/json_annotation.dart';

part 'order_header.g.dart';

@JsonSerializable()
class OrderHeader {
  List<OrderType> orderPropDetailHeadVOList;

  int num;

  int totalFee;

  OrderHeader(
    this.orderPropDetailHeadVOList,
    this.num,
    this.totalFee,
  );

  factory OrderHeader.fromJson(Map<String, dynamic> srcJson) => _$OrderHeaderFromJson(srcJson);

  Map<String, dynamic> toJson() => _$OrderHeaderToJson(this);
}

@JsonSerializable()
class OrderType {
  int type;

  String des;

  int num;

  OrderType(
    this.type,
    this.des,
    this.num,
  );

  factory OrderType.fromJson(Map<String, dynamic> srcJson) => _$OrderTypeFromJson(srcJson);

  Map<String, dynamic> toJson() => _$OrderTypeToJson(this);
}
